package org.doubango.FrCall.Utils.json;

import java.util.List;
import java.util.Map;

public class JsonUtils {

	public static <T> T bindData(Object object, Class<T> cls) {
		return ObjectMapper.bindModel(object.toString(), cls);
	}

	public static <T> List<T> bindDataList(Object object, Class<T> cls) {
		return ObjectMapper.bindModelList(object.toString(), cls);
	}
	
	public static <T> List<List<T>> bindDataListList(Object object, Class<T> cls) {
		return ObjectMapper.bindModelListList(object.toString(), cls);
	}

	public static Map bindDataToModel(String content) {
		return ObjectMapper.bindDataToMap(content);
	}
	
}
